define(function(require, exports, module) {

    var sTpl = '' +
        '<div id="formula_edit_wrap" class="clearfix">'+
        '    <div id="formula_operation" class="clearfix">'+
        '        <div id="formula_left" class="clearfix">'+
        '            <h1>信息集</h1>'+
        '            <div id="formula_tree" class="ztree"></div>'+
        '        </div>'+
        '        <div id="formula_right" class="clearfix">'+
        '            <form id="formula_query" class="clearfix">'+
        '                <div class="l">'+
        '                    <label for="formulaName">公式名称：</label> <input type="text" name="name" class="formula_text" id="formulaName" style="width:95px;" value="{{name}}"/> &nbsp;&nbsp;'+
        '                    <label for="formulaOrder">显示顺序：</label> <input type="number" name="sortsn" class="formula_text" id="formulaOrder" style="width:50px;padding-right: 0;" value="{{sortsn||99}}"/>&nbsp;&nbsp;'+
        '                    <label for="formula_Group_drop">精确方式：</label> <div class="dayhr_drop_select" id="formula_Group_drop" style="display: inline-block;vertical-align: middle;" value="{{pre}}"></div>'+
        '                    &nbsp;&nbsp;'+
        '                    <label for="formulaCalculate">是否运算：</label> <input type="checkbox" name="iscal" id="formulaCalculate" {{if iscal == 1 || iscal == \'是\' || iscal=== \'\'}}checked{{/if}}  class="switch-checkbox "/>'+
        '                </div> '+
        '            </form>'+
        '            <div id="formula_editor" class="clearfix">'+
        '                <!-- 加载编辑器的容器 -->'+
        '                <textarea id="formula_editor_id" name="content" style="width:100%;height:300px;"></textarea>'+
        '            </div>'+
        '            <div id="formula_eidtor_buttons" class="clearfix">'+
        '                <div class="l">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="1" id="formula_button1" name="formula_button1" data-value="1">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="2" id="formula_button2" name="formula_button2" data-value="2">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="3" id="formula_button3" name="formula_button3" data-value="3">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="+" id="formula_button4" name="formula_button4" data-value="+,null, true" style="margin-right: 20px;">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="=" id="formula_button5" name="formula_button5" data-value="=,null,true">'+
        '                    <input class="twochar-btn shrbtn-primary" type="button" value="<>" id="formula_button6" name="formula_button6" data-value="<>,null,true" style="margin-right: 20px;">'+
        '                    <input class="text-btn shrbtn-primary" type="button" value="如果" title="if" id="formula_button7" name="formula_button7" data-value="如果,LOGIC,true">'+
        '                    <input class="text-btn shrbtn-primary" type="button" value="那么" title="then" id="formula_button8" name="formula_button8" data-value="那么,LOGIC,true">'+
        '                    <br>'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="4" id="formula_button9" name="formula_button9" data-value="4">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="5" id="formula_button10" name="formula_button10" data-value="5">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="6" id="formula_button11" name="formula_button11" data-value="6">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="-" id="formula_button12" name="formula_button12" data-value="-,null, true" style="margin-right: 20px;">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="<" id="formula_button13" name="formula_button13" data-value="<,null, true">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value=">" id="formula_button14" name="formula_button14" data-value=">,null, true" style="margin-right: 20px;">'+
        '                    <input class="text-btn shrbtn-primary" type="button" value="再滤" title="else if" id="formula_button15" name="formula_button15" data-value="再滤,LOGIC,true">'+
        '                    <input class="text-btn shrbtn-primary" type="button" value="其余" title="else" id="formula_button16" name="formula_button16" data-value="其余,LOGIC,true">'+
        '                    <br>'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="7" id="formula_button17" name="formula_button17" data-value="7">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="8" id="formula_button18" name="formula_button18" data-value="8">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="9" id="formula_button19" name="formula_button19" data-value="9">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="*" id="formula_button20" name="formula_button20" data-value="*,null, true" style="margin-right: 20px;">'+
        '                    <input class="twochar-btn shrbtn-primary" type="button" value="<=" id="formula_button21" name="formula_button21" data-value="<=,null, true">'+
        '                    <input class="twochar-btn shrbtn-primary" type="button" value=">=" id="formula_button22" name="formula_button22" data-value=">=,null, true" style="margin-right: 20px;">'+
        '                    <input class="text-btn shrbtn-primary" type="button" value="并且" title="and" id="formula_button23" name="formula_button23" data-value="并且,LOGIC,true">'+
        '                    <input class="text-btn shrbtn-primary" type="button" value="或者" title="or" id="formula_button24" name="formula_button24" data-value="或者,LOGIC,true">'+
        '                    <br>'+
        '                    <input class="zero-btn shrbtn-primary" type="button" value="0"  id="formula_button25" name="formula_button25" data-value="0">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="."  id="formula_button26" name="formula_button26" data-value=".">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="/"  id="formula_button27" name="formula_button27" data-value="/" style="margin-right: 20px;">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value="("  id="formula_button28" name="formula_button28" data-value="(">'+
        '                    <input class="number-btn shrbtn-primary" type="button" value=")"  id="formula_button29" name="formula_button29" data-value=")" style="margin-right: 20px;">'+
        '                    <input class="colon-btn shrbtn-primary" type="button" value="同时" title="用于对多个项目赋值" id="formula_button36" name="formula_button36" data-value="同时,LOGIC,true">'+
        '                    <input class="text-btn shrbtn-primary" type="button" value="高级" title="用于引用函数、变量、临时表"  id="formula_button30" name="formula_button30" data-value="openSeniorWindow">'+
        '                </div>'+
        '                <dl class="formula_dec_wrap">'+
        '                    <dt>'+
        '                        <span class="on">公式说明</span>'+
        '                        <span>出错信息</span>'+
        '                    </dt>'+
        '                    <dd>'+
        '                        <div class="dd_div">'+
        '                            <textarea id="formula_dec" name="remark">{{remark}}</textarea>'+
        '                        </div>'+
        '                        <div class="dd_div" style="display: none;">'+
        '                            <div id="formula_error"></div>'+
        '                        </div>'+
        '                    </dd>'+
        '                </dl>'+
        '            </div>'+
        '        </div>'+
        '    </div>'+
        '    <div id="formula_buttons" class="clearfix">'+
        '       <input type="button" class="flat-button flat-medium flat-yellow" id="formula_buttons_ok" value="保存"/> &nbsp;&nbsp;'+
        '       <input type="button" class="flat-button flat-medium flat-white" id="formula_buttons_cancel" value="取消"/>'+
        '    </div>'+
        '</div>';

    module.exports = sTpl;
});
